package com.umakr.ax.common.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.umakr.ax.common.model.PluginCoupon;
import com.umakr.ax.common.vo.PluginCouponListVO;
import com.umakr.ax.common.vo.PluginCouponVO;
import com.umakr.ax.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
public interface PluginCouponMapper extends BaseMapper<PluginCoupon> {

    Page<PluginCouponListVO> getCouponsByHxrTel(@Param("hxrTel")String hxrTel);

    void delPluginCoupon(@Param("id")Long id,@Param("delStatus") Integer delStatus);

    Page<PluginCouponVO> listPluginCoupon(@Param("rsId")Long rsId);
    Page<PluginCouponVO> listPluginCouponForWeb(@Param("rsId")Long rsId);

    Page<PluginCouponVO> listPluginCouponByTitle(@Param("rsId")Long rsId,String title);

    Long updatePluginCoupon(PluginCoupon pluginCoupon);

    Long savePluginCoupon(PluginCoupon pluginCoupon);
}